package com.qk.management.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qk.domain.clue.ClueCountDO;
import com.qk.domain.clue.ClueDO;
import com.qk.domain.clue.ClueSelectPoolByPageDO;
import com.qk.dto.clue.ClueDTO;
import com.qk.dto.clue.ClueSelectPoolByPageDTO;
import com.qk.entity.Clue;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/*
 *  @author SHCJ
 *  @created 2025/10/13 20:27
 *  @description
 */
@Mapper
public interface ClueMapper extends BaseMapper<Clue> {
    List<ClueDO> selectByPage(ClueDTO clueDTO);


//TODO xml里面的sql语句有待优化:不需要查询一些数据,例如活动名称等等,但是目前不影响正常运行
    List<ClueSelectPoolByPageDO> selectPoolByPage(ClueSelectPoolByPageDTO clueDTO);

    ClueCountDO selectCountClue();
}
